package com.kgame5.xtank3d.control {
import kgame5.enginex.GameCommand;
import kgame5.kutil.T;

import com.kgame5.xtank3d.model.cart.CartEntity;
import com.kgame5.xtank3d.vo.MyTankVO;

/**
 * @author kk
 */
public class AddNPCTankCommand extends GameCommand{
	
	public static const NAME:String="AddNPCTankCommand";

	override public function execute(data:Object) : void {
		T.p(NAME);
		
		var tankVO:MyTankVO=data as MyTankVO;
			
		gamePlay.addEntity(new CartEntity(tankVO));
	}
}//end of class
}
